package dao;

import bean.Label;
import bean.User;

import java.sql.SQLException;
import java.util.ArrayList;

public interface LabelDao {
    public boolean addLabel(ArrayList<Label> labels,int articleId);/*添加标签*/
    public boolean updateLabel(Label label);/*更新标签*/
    public boolean deleteLabel(int labelId);/*删除标签*/
    public boolean deleteArticleLabel(int articleId);/*删除文章标签*/
    public ArrayList<Label> getLabels(int id) throws SQLException;/*获取某个博客的所有标签*/
    public ArrayList<Label> getAllLabels() throws SQLException;/*获取所有标签*/
    public ArrayList<Label> getUserLabels(User user) throws SQLException;/*获取用户的所有标签*/
    public boolean addLabel(Label label);/*添加标签*/
}
